import React from 'react';
import { Table } from 'antd';

const MyTable = (props: any) => {
  const { list = [], columns = [] } = props;
  return <Table rowKey="id" dataSource={list} columns={columns} />;
};

export default MyTable;
